cmake_minimum_required(VERSION 3.8)
project(tf_reader)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)


add_executable(tf_subscriber src/tf_subscriber.cpp) 
ament_target_dependencies(tf_subscriber 
  rclcpp 
  tf2_ros 
  geometry_msgs 
)
 
install(TARGETS 
  tf_subscriber 
  DESTINATION lib/${PROJECT_NAME}
)
ament_package()
